package com.cos.fegin.api;

import com.cos.commons.R;
import com.cos.vo.Customer;
import com.cos.vo.Goods;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpSession;

@FeignClient(name = "user")
public interface ItemService {

    @RequestMapping("/user/checkUsername")
    public Customer checkUsername(@RequestParam("username") String username);
    @RequestMapping("/user/add")
    boolean addUser(@RequestBody Customer customer);


}
